<!--

Input : <msg_master ORM> $model

-->
<div class="wall_comment">
    <!-- MAIN WALL -->
    <?php
        $msg = $model;
        $user = new ORM('user');
        $user->find($msg->from);
        $photo = new ORM('photo');
        $photo->find($user->photo_id);
    ?>
    <img class="profpic" src="<?php echo URL::site($photo->link) ?>" alt="<?php echo $user->username ?>" />
    <div class = "right">
        <div class="name">
            <a href="<?php echo URL::site("profile?uid=$user->id") ?>"><?php echo $user->username ?></a>
        </div>
        <div class="content">
            <?php echo $msg->message_text;  ?>
        </div>
        <div class="datetime">
            <?php echo $msg->date_stamp ?>
        </div>
        <a class="delete" href="<?php echo URL::site("message/del/$msg->id") ?>">
            <img src="<?php echo URL::base_url() . 'public/image/delete.png' ?>" alt="Delete" title="Delete"/>
        </a>
    </div>
    <div class="clear"></div>
</div>
